package close.mazegame.tile;

import close.mazegame.screens.Screen;

import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gdx.math.Vector2;

public abstract class Tile {
	public static final float SIZE = 1f;
	
	public void render(Screen screen) {
		float x = getPosition().x - Tile.SIZE / 2;
		float y = getPosition().y - Tile.SIZE / 2;
		screen.draw(getTexture(), x, y, Tile.SIZE, Tile.SIZE);
	}
	
	public abstract TextureRegion getTexture();
	public abstract Vector2 getPosition();
	public abstract boolean isSolid();
	
}
